/*    */ package com.zimbra.qa.unittest;
/*    */ 
/*    */ import com.zimbra.common.util.Log;
/*    */ import com.zimbra.common.util.ZimbraLog;
/*    */ import org.junit.runner.Description;
/*    */ import org.junit.runner.Result;
/*    */ import org.junit.runner.notification.Failure;
/*    */ import org.junit.runner.notification.RunListener;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class TestLogger
/*    */   extends RunListener
/*    */ {
/*    */   public void testRunStarted(Description description)
/*    */     throws Exception
/*    */   {
/* 30 */     ZimbraLog.test.info("Starting test suite.");
/*    */   }
/*    */   
/*    */   public void testRunFinished(Result result) throws Exception
/*    */   {
/* 35 */     ZimbraLog.test.info("Finished test suite.");
/*    */   }
/*    */   
/*    */   public void testStarted(Description desc) throws Exception
/*    */   {
/* 40 */     ZimbraLog.test.info("Starting test %s.%s.", new Object[] { desc.getClassName(), desc.getMethodName() });
/*    */   }
/*    */   
/*    */   public void testFinished(Description desc) throws Exception
/*    */   {
/* 45 */     ZimbraLog.test.info("Test %s.%s completed.", new Object[] { desc.getClassName(), desc.getMethodName() });
/*    */   }
/*    */   
/*    */   public void testFailure(Failure failure) throws Exception
/*    */   {
/* 50 */     Description desc = failure.getDescription();
/* 51 */     ZimbraLog.test.error("Test %s.%s failed.", desc.getClassName(), desc.getMethodName(), failure.getException());
/*    */   }
/*    */   
/*    */   public void testIgnored(Description desc) throws Exception
/*    */   {
/* 56 */     ZimbraLog.test.info("Test %s.%s ignored.", new Object[] { desc.getClassName(), desc.getMethodName() });
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/qa/unittest/TestLogger.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */